package priv.yiyuan.example.design.strategy;

import priv.yiyuan.example.design.strategy.drawing.DrawingStrategy;

/**
 * 方形
 *
 * @author YiYuan
 * @data 2025/8/11
 * @apoNote
 */
public class SquareBridgeWithStrategy extends ShapeBridgeWithStrategy {

    public SquareBridgeWithStrategy(ColorWithStrategy color, DrawingStrategy drawingStrategy) {
        super(color, drawingStrategy);
    }

    @Override
    public void draw() {

        System.out.println("绘制一个 ");
        color.applyColor(drawingStrategy, "方形");
    }
}
